<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Livox SDK API: sdk_core/include/third_party/spdlog/spdlog/details/thread_pool.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="1.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Livox SDK API
   &#160;<span id="projectnumber">V2.0.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('thread__pool_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">thread_pool.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="thread__pool_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160; </div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="fmt__helper_8h.html">spdlog/details/fmt_helper.h</a>&quot;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="log__msg_8h.html">spdlog/details/log_msg.h</a>&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="mpmc__blocking__q_8h.html">spdlog/details/mpmc_blocking_q.h</a>&quot;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="os_8h.html">spdlog/details/os.h</a>&quot;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160; </div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;chrono&gt;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;thread&gt;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160; </div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacespdlog.html">spdlog</a> {</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="keyword">namespace </span>details {</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160; </div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="namespacespdlog_1_1details.html#a9b6989c16b6150f7e4658ea2aee01bc2">   16</a></span>&#160;<span class="keyword">using</span> <a class="code" href="namespacespdlog_1_1details.html#a9b6989c16b6150f7e4658ea2aee01bc2">async_logger_ptr</a> = std::shared_ptr&lt;spdlog::async_logger&gt;;</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160; </div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="namespacespdlog_1_1details.html#a22274995cf879a5d0a08d1f7513ee4fb">   18</a></span>&#160;<span class="keyword">enum class</span> <a class="code" href="namespacespdlog_1_1details.html#a22274995cf879a5d0a08d1f7513ee4fb">async_msg_type</a></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;{</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    <a class="code" href="namespacespdlog_1_1details.html#a22274995cf879a5d0a08d1f7513ee4fbadc1d71bbb5c4d2a5e936db79ef10c19f">log</a>,</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    <a class="code" href="namespacespdlog_1_1details.html#a22274995cf879a5d0a08d1f7513ee4fba86f354b8575a1a736775ae003fa344e5">flush</a>,</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    <a class="code" href="namespacespdlog_1_1details.html#a22274995cf879a5d0a08d1f7513ee4fba1459e53d3fbaa95cebaf90860dd7a259">terminate</a></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;};</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160; </div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">// Async msg to move to/from the queue</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment">// Movable only. should never be copied</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="structspdlog_1_1details_1_1async__msg.html">   27</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structspdlog_1_1details_1_1async__msg.html">async_msg</a></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;{</div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="structspdlog_1_1details_1_1async__msg.html#a02c7d8e28bc720dea6552042801a86c0">   29</a></span>&#160;    <a class="code" href="namespacespdlog_1_1details.html#a22274995cf879a5d0a08d1f7513ee4fb">async_msg_type</a> <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a02c7d8e28bc720dea6552042801a86c0">msg_type</a>;</div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="structspdlog_1_1details_1_1async__msg.html#a3e2008e47f70761ff3240ab56a3be370">   30</a></span>&#160;    <a class="code" href="namespacespdlog_1_1level.html#a35f5227e5daf228d28a207b7b2aefc8b">level::level_enum</a> <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a3e2008e47f70761ff3240ab56a3be370">level</a>;</div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="structspdlog_1_1details_1_1async__msg.html#a00cfea0e28fb046d77da1df09d6410b4">   31</a></span>&#160;    log_clock::time_point <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a00cfea0e28fb046d77da1df09d6410b4">time</a>;</div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="structspdlog_1_1details_1_1async__msg.html#aac1c8c51a83bae076197a384d26b8814">   32</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structspdlog_1_1details_1_1async__msg.html#aac1c8c51a83bae076197a384d26b8814">thread_id</a>;</div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="structspdlog_1_1details_1_1async__msg.html#a0c3ac027c1ca0c1380210c32219a0370">   33</a></span>&#160;    <a class="code" href="classfmt_1_1v5_1_1basic__memory__buffer.html">fmt::basic_memory_buffer&lt;char, 176&gt;</a> <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a0c3ac027c1ca0c1380210c32219a0370">raw</a>;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="structspdlog_1_1details_1_1async__msg.html#a74136620d40e667dbfec1050c8e74179">   35</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a74136620d40e667dbfec1050c8e74179">msg_id</a>;</div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="structspdlog_1_1details_1_1async__msg.html#a017a4b18324181e93c1b1606b0158999">   36</a></span>&#160;    <a class="code" href="structspdlog_1_1source__loc.html">source_loc</a> <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a017a4b18324181e93c1b1606b0158999">source</a>;</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="structspdlog_1_1details_1_1async__msg.html#a11f8ca9e84e22b61fca4cd7fe88db5aa">   37</a></span>&#160;    <a class="code" href="namespacespdlog_1_1details.html#a9b6989c16b6150f7e4658ea2aee01bc2">async_logger_ptr</a> <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a11f8ca9e84e22b61fca4cd7fe88db5aa">worker_ptr</a>;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160; </div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a1639729ae0bbefc841ec4b87c3369274">async_msg</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <a class="code" href="structspdlog_1_1details_1_1async__msg.html#ab4a9c6bb231f8b467f4a9bf43820da45">~async_msg</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="comment">// should only be moved in or out of the queue..</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a1639729ae0bbefc841ec4b87c3369274">async_msg</a>(<span class="keyword">const</span> <a class="code" href="structspdlog_1_1details_1_1async__msg.html">async_msg</a> &amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="comment">// support for vs2013 move</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">#if defined(_MSC_VER) &amp;&amp; _MSC_VER &lt;= 1800</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a1639729ae0bbefc841ec4b87c3369274">async_msg</a>(<a class="code" href="structspdlog_1_1details_1_1async__msg.html">async_msg</a> &amp;&amp;other) <a class="code" href="common_8h.html#a15d2dc432e6bb83beb5130be9a4ca8d6">SPDLOG_NOEXCEPT</a> : <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a02c7d8e28bc720dea6552042801a86c0">msg_type</a>(other.msg_type),</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;                                                   <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a3e2008e47f70761ff3240ab56a3be370">level</a>(other.level),</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;                                                   <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a00cfea0e28fb046d77da1df09d6410b4">time</a>(other.time),</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;                                                   <a class="code" href="structspdlog_1_1details_1_1async__msg.html#aac1c8c51a83bae076197a384d26b8814">thread_id</a>(other.thread_id),</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;                                                   <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a0c3ac027c1ca0c1380210c32219a0370">raw</a>(move(other.raw)),</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;                                                   <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a74136620d40e667dbfec1050c8e74179">msg_id</a>(other.msg_id),</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;                                                   <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a017a4b18324181e93c1b1606b0158999">source</a>(other.source),</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;                                                   <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a11f8ca9e84e22b61fca4cd7fe88db5aa">worker_ptr</a>(std::move(other.worker_ptr))</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    {</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    }</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160; </div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <a class="code" href="structspdlog_1_1details_1_1async__msg.html">async_msg</a> &amp;<a class="code" href="structspdlog_1_1details_1_1async__msg.html#a963cf593d81367843c4347603a18c5f8">operator=</a>(<a class="code" href="structspdlog_1_1details_1_1async__msg.html">async_msg</a> &amp;&amp;other) <a class="code" href="common_8h.html#a15d2dc432e6bb83beb5130be9a4ca8d6">SPDLOG_NOEXCEPT</a></div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    {</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a02c7d8e28bc720dea6552042801a86c0">msg_type</a> = other.msg_type;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a3e2008e47f70761ff3240ab56a3be370">level</a> = other.level;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a00cfea0e28fb046d77da1df09d6410b4">time</a> = other.time;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        <a class="code" href="structspdlog_1_1details_1_1async__msg.html#aac1c8c51a83bae076197a384d26b8814">thread_id</a> = other.thread_id;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a0c3ac027c1ca0c1380210c32219a0370">raw</a> = std::move(other.raw);</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a74136620d40e667dbfec1050c8e74179">msg_id</a> = other.msg_id;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a017a4b18324181e93c1b1606b0158999">source</a> = other.source;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a11f8ca9e84e22b61fca4cd7fe88db5aa">worker_ptr</a> = std::move(other.worker_ptr);</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    }</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="preprocessor">#else // (_MSC_VER) &amp;&amp; _MSC_VER &lt;= 1800</span></div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a1639729ae0bbefc841ec4b87c3369274">async_msg</a>(<a class="code" href="structspdlog_1_1details_1_1async__msg.html#a1639729ae0bbefc841ec4b87c3369274">async_msg</a> &amp;&amp;) = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a1639729ae0bbefc841ec4b87c3369274">async_msg</a> &amp;<a class="code" href="structspdlog_1_1details_1_1async__msg.html#a963cf593d81367843c4347603a18c5f8">operator=</a>(<a class="code" href="structspdlog_1_1details_1_1async__msg.html#a1639729ae0bbefc841ec4b87c3369274">async_msg</a> &amp;&amp;) = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160; </div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="comment">// construct from log_msg with given type</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="structspdlog_1_1details_1_1async__msg.html#aa525d6ee1ca7b82755a0f39b62283638">   76</a></span>&#160;    <a class="code" href="structspdlog_1_1details_1_1async__msg.html#aa525d6ee1ca7b82755a0f39b62283638">async_msg</a>(<a class="code" href="namespacespdlog_1_1details.html#a9b6989c16b6150f7e4658ea2aee01bc2">async_logger_ptr</a> &amp;&amp;worker, <a class="code" href="namespacespdlog_1_1details.html#a22274995cf879a5d0a08d1f7513ee4fb">async_msg_type</a> the_type, <a class="code" href="structspdlog_1_1details_1_1log__msg.html">details::log_msg</a> &amp;m)</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        : <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a02c7d8e28bc720dea6552042801a86c0">msg_type</a>(the_type)</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        , <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a3e2008e47f70761ff3240ab56a3be370">level</a>(m.<a class="code" href="structspdlog_1_1details_1_1async__msg.html#a3e2008e47f70761ff3240ab56a3be370">level</a>)</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        , <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a00cfea0e28fb046d77da1df09d6410b4">time</a>(m.<a class="code" href="structspdlog_1_1details_1_1async__msg.html#a00cfea0e28fb046d77da1df09d6410b4">time</a>)</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        , <a class="code" href="structspdlog_1_1details_1_1async__msg.html#aac1c8c51a83bae076197a384d26b8814">thread_id</a>(m.<a class="code" href="structspdlog_1_1details_1_1async__msg.html#aac1c8c51a83bae076197a384d26b8814">thread_id</a>)</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        , <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a74136620d40e667dbfec1050c8e74179">msg_id</a>(m.<a class="code" href="structspdlog_1_1details_1_1async__msg.html#a74136620d40e667dbfec1050c8e74179">msg_id</a>)</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        , <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a017a4b18324181e93c1b1606b0158999">source</a>(m.<a class="code" href="structspdlog_1_1details_1_1async__msg.html#a017a4b18324181e93c1b1606b0158999">source</a>)</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        , <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a11f8ca9e84e22b61fca4cd7fe88db5aa">worker_ptr</a>(<a class="code" href="namespacestd.html">std</a>::move(worker))</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    {</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        <a class="code" href="namespacespdlog_1_1details_1_1fmt__helper.html#a603f4d0d8853a61610a0042d5d62fe94">fmt_helper::append_string_view</a>(m.<a class="code" href="structspdlog_1_1details_1_1log__msg.html#a33fd07702d73245581fccd8d0d04b82a">payload</a>, <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a0c3ac027c1ca0c1380210c32219a0370">raw</a>);</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    }</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="structspdlog_1_1details_1_1async__msg.html#ace5999e830cd28f7b14f804952925379">   88</a></span>&#160;    <a class="code" href="structspdlog_1_1details_1_1async__msg.html#ace5999e830cd28f7b14f804952925379">async_msg</a>(<a class="code" href="namespacespdlog_1_1details.html#a9b6989c16b6150f7e4658ea2aee01bc2">async_logger_ptr</a> &amp;&amp;worker, <a class="code" href="namespacespdlog_1_1details.html#a22274995cf879a5d0a08d1f7513ee4fb">async_msg_type</a> the_type)</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        : <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a02c7d8e28bc720dea6552042801a86c0">msg_type</a>(the_type)</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        , <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a3e2008e47f70761ff3240ab56a3be370">level</a>(<a class="code" href="structspdlog_1_1details_1_1async__msg.html#a3e2008e47f70761ff3240ab56a3be370">level</a>::<a class="code" href="namespacespdlog_1_1level.html#a35f5227e5daf228d28a207b7b2aefc8ba917591d8c0e89f6e6247c95c67809a1a">off</a>)</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        , <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a00cfea0e28fb046d77da1df09d6410b4">time</a>()</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        , <a class="code" href="structspdlog_1_1details_1_1async__msg.html#aac1c8c51a83bae076197a384d26b8814">thread_id</a>(0)</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        , <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a74136620d40e667dbfec1050c8e74179">msg_id</a>(0)</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        , <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a017a4b18324181e93c1b1606b0158999">source</a>()</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        , <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a11f8ca9e84e22b61fca4cd7fe88db5aa">worker_ptr</a>(<a class="code" href="namespacestd.html">std</a>::move(worker))</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    {</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    }</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160; </div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="structspdlog_1_1details_1_1async__msg.html#a466b9eb427b14c12f59afeeeb98c0e01">   99</a></span>&#160;    <span class="keyword">explicit</span> <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a466b9eb427b14c12f59afeeeb98c0e01">async_msg</a>(<a class="code" href="namespacespdlog_1_1details.html#a22274995cf879a5d0a08d1f7513ee4fb">async_msg_type</a> the_type)</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        : <a class="code" href="structspdlog_1_1details_1_1async__msg.html">async_msg</a>(nullptr, the_type)</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    {</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    }</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    <span class="comment">// copy into log_msg</span></div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="structspdlog_1_1details_1_1async__msg.html#a2c5c21ef52bd0b7241ed6ac56f480fd2">  105</a></span>&#160;    <a class="code" href="structspdlog_1_1details_1_1log__msg.html">log_msg</a> <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a2c5c21ef52bd0b7241ed6ac56f480fd2">to_log_msg</a>()</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    {</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        <a class="code" href="structspdlog_1_1details_1_1log__msg.html">log_msg</a> msg(&amp;<a class="code" href="structspdlog_1_1details_1_1async__msg.html#a11f8ca9e84e22b61fca4cd7fe88db5aa">worker_ptr</a>-&gt;name(), <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a3e2008e47f70761ff3240ab56a3be370">level</a>, <a class="code" href="namespacespdlog.html#af48e310b2f366ac6544701e6a3b56247">string_view_t</a>(<a class="code" href="structspdlog_1_1details_1_1async__msg.html#a0c3ac027c1ca0c1380210c32219a0370">raw</a>.<a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#a384f1304da6ce18c4713368327354479">data</a>(), <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a0c3ac027c1ca0c1380210c32219a0370">raw</a>.<a class="code" href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#ac4761deba75a7238ae29243b159b9943">size</a>()));</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;        msg.<a class="code" href="structspdlog_1_1details_1_1log__msg.html#a25fadb26e6ce94657af5475d4a581313">time</a> = <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a00cfea0e28fb046d77da1df09d6410b4">time</a>;</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        msg.<a class="code" href="structspdlog_1_1details_1_1log__msg.html#ab8474cd689276f61021bca37e1993eef">thread_id</a> = <a class="code" href="structspdlog_1_1details_1_1async__msg.html#aac1c8c51a83bae076197a384d26b8814">thread_id</a>;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        msg.<a class="code" href="structspdlog_1_1details_1_1log__msg.html#a8cbec91cdecd3cb4efe9cfa39d5d1d84">msg_id</a> = <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a74136620d40e667dbfec1050c8e74179">msg_id</a>;</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        msg.<a class="code" href="structspdlog_1_1details_1_1log__msg.html#a607e0014c79c1d39e28b515662ca2ca1">source</a> = <a class="code" href="structspdlog_1_1details_1_1async__msg.html#a017a4b18324181e93c1b1606b0158999">source</a>;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        msg.<a class="code" href="structspdlog_1_1details_1_1log__msg.html#a87cb1c5f1ecd7415412722123e35d491">color_range_start</a> = 0;</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        msg.<a class="code" href="structspdlog_1_1details_1_1log__msg.html#a0dfc2763f8e6b73ca34e4cb7c5a9950a">color_range_end</a> = 0;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        <span class="keywordflow">return</span> msg;</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    }</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;};</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160; </div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="classspdlog_1_1details_1_1thread__pool.html">  118</a></span>&#160;<span class="keyword">class </span><a class="code" href="classspdlog_1_1details_1_1thread__pool.html">thread_pool</a></div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;{</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="classspdlog_1_1details_1_1thread__pool.html#a997d954a51e8fa8aa92071d1a9c08536">  121</a></span>&#160;    <span class="keyword">using</span> <a class="code" href="structspdlog_1_1details_1_1async__msg.html">item_type</a> = <a class="code" href="structspdlog_1_1details_1_1async__msg.html">async_msg</a>;</div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="classspdlog_1_1details_1_1thread__pool.html#a77d633d56b0b5e1fe37965faa4642df5">  122</a></span>&#160;    <span class="keyword">using</span> <a class="code" href="classspdlog_1_1details_1_1mpmc__blocking__queue.html">q_type</a> = <a class="code" href="classspdlog_1_1details_1_1mpmc__blocking__queue.html">details::mpmc_blocking_queue&lt;item_type&gt;</a>;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160; </div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="classspdlog_1_1details_1_1thread__pool.html#a2ac821eb936f7373cc51949fb05e841c">  124</a></span>&#160;    <a class="code" href="classspdlog_1_1details_1_1thread__pool.html#a2ac821eb936f7373cc51949fb05e841c">thread_pool</a>(<span class="keywordtype">size_t</span> q_max_items, <span class="keywordtype">size_t</span> threads_n)</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;        : q_(q_max_items)</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    {</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;        <span class="comment">// std::cout &lt;&lt; &quot;thread_pool()  q_size_bytes: &quot; &lt;&lt; q_size_bytes &lt;&lt;</span></div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;        <span class="comment">// &quot;\tthreads_n: &quot; &lt;&lt; threads_n &lt;&lt; std::endl;</span></div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;        <span class="keywordflow">if</span> (threads_n == 0 || threads_n &gt; 1000)</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;        {</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;            <span class="keywordflow">throw</span> <a class="code" href="classspdlog_1_1spdlog__ex.html">spdlog_ex</a>(<span class="stringliteral">&quot;spdlog::thread_pool(): invalid threads_n param (valid &quot;</span></div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;                            <span class="stringliteral">&quot;range is 1-1000)&quot;</span>);</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        }</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i &lt; threads_n; i++)</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;        {</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;            threads_.emplace_back(&amp;thread_pool::worker_loop_, <span class="keyword">this</span>);</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        }</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    }</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160; </div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <span class="comment">// message all threads to terminate gracefully join them</span></div>
<div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="classspdlog_1_1details_1_1thread__pool.html#a27e41d821a8aa8137bc0e64df031ccd4">  141</a></span>&#160;    <a class="code" href="classspdlog_1_1details_1_1thread__pool.html#a27e41d821a8aa8137bc0e64df031ccd4">~thread_pool</a>()</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    {</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;        <span class="keywordflow">try</span></div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;        {</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i &lt; threads_.size(); i++)</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;            {</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;                post_async_msg_(<a class="code" href="structspdlog_1_1details_1_1async__msg.html">async_msg</a>(<a class="code" href="namespacespdlog_1_1details.html#a22274995cf879a5d0a08d1f7513ee4fba1459e53d3fbaa95cebaf90860dd7a259">async_msg_type::terminate</a>), <a class="code" href="namespacespdlog.html#a42e109759a11c9514d3f6313a7709852a14511f2f5564650d129ca7cabc333278">async_overflow_policy::block</a>);</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;            }</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160; </div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;            <span class="keywordflow">for</span> (<span class="keyword">auto</span> &amp;t : threads_)</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;            {</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;                t.join();</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;            }</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;        }</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;        <span class="keywordflow">catch</span> (...)</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;        {</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        }</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    }</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160; </div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    <a class="code" href="classspdlog_1_1details_1_1thread__pool.html#a2ac821eb936f7373cc51949fb05e841c">thread_pool</a>(<span class="keyword">const</span> <a class="code" href="classspdlog_1_1details_1_1thread__pool.html">thread_pool</a> &amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    <a class="code" href="classspdlog_1_1details_1_1thread__pool.html">thread_pool</a> &amp;<a class="code" href="classspdlog_1_1details_1_1thread__pool.html#a1a62f3ab1474d69cd1e25143664e856d">operator=</a>(<a class="code" href="classspdlog_1_1details_1_1thread__pool.html">thread_pool</a> &amp;&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160; </div>
<div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="classspdlog_1_1details_1_1thread__pool.html#a70cc09729d82174d84640eaface150e0">  163</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classspdlog_1_1details_1_1thread__pool.html#a70cc09729d82174d84640eaface150e0">post_log</a>(<a class="code" href="namespacespdlog_1_1details.html#a9b6989c16b6150f7e4658ea2aee01bc2">async_logger_ptr</a> &amp;&amp;worker_ptr, <a class="code" href="structspdlog_1_1details_1_1log__msg.html">details::log_msg</a> &amp;msg, <a class="code" href="namespacespdlog.html#a42e109759a11c9514d3f6313a7709852">async_overflow_policy</a> overflow_policy)</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    {</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;        <a class="code" href="structspdlog_1_1details_1_1async__msg.html">async_msg</a> async_m(std::move(worker_ptr), <a class="code" href="namespacespdlog_1_1details.html#a22274995cf879a5d0a08d1f7513ee4fbadc1d71bbb5c4d2a5e936db79ef10c19f">async_msg_type::log</a>, msg);</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;        post_async_msg_(std::move(async_m), overflow_policy);</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    }</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160; </div>
<div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="classspdlog_1_1details_1_1thread__pool.html#aa851092603e816f78dd81bb980232048">  169</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classspdlog_1_1details_1_1thread__pool.html#aa851092603e816f78dd81bb980232048">post_flush</a>(<a class="code" href="namespacespdlog_1_1details.html#a9b6989c16b6150f7e4658ea2aee01bc2">async_logger_ptr</a> &amp;&amp;worker_ptr, <a class="code" href="namespacespdlog.html#a42e109759a11c9514d3f6313a7709852">async_overflow_policy</a> overflow_policy)</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    {</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;        post_async_msg_(<a class="code" href="structspdlog_1_1details_1_1async__msg.html">async_msg</a>(std::move(worker_ptr), <a class="code" href="namespacespdlog_1_1details.html#a22274995cf879a5d0a08d1f7513ee4fba86f354b8575a1a736775ae003fa344e5">async_msg_type::flush</a>), overflow_policy);</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    }</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160; </div>
<div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="classspdlog_1_1details_1_1thread__pool.html#adc34920f65797d8f54986dc1894a8804">  174</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="classspdlog_1_1details_1_1thread__pool.html#adc34920f65797d8f54986dc1894a8804">overrun_counter</a>()</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    {</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;        <span class="keywordflow">return</span> q_.<a class="code" href="classspdlog_1_1details_1_1mpmc__blocking__queue.html#a15e3d12dff953034d5aad5590b8282cd">overrun_counter</a>();</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    }</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160; </div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    <a class="code" href="classspdlog_1_1details_1_1thread__pool.html#a77d633d56b0b5e1fe37965faa4642df5">q_type</a> q_;</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160; </div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    std::vector&lt;std::thread&gt; threads_;</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160; </div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;    <span class="keywordtype">void</span> post_async_msg_(<a class="code" href="structspdlog_1_1details_1_1async__msg.html">async_msg</a> &amp;&amp;new_msg, <a class="code" href="namespacespdlog.html#a42e109759a11c9514d3f6313a7709852">async_overflow_policy</a> overflow_policy)</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    {</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;        <span class="keywordflow">if</span> (overflow_policy == <a class="code" href="namespacespdlog.html#a42e109759a11c9514d3f6313a7709852a14511f2f5564650d129ca7cabc333278">async_overflow_policy::block</a>)</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;        {</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;            q_.<a class="code" href="classspdlog_1_1details_1_1mpmc__blocking__queue.html#a3795640b651fcb2de66a21ef2bc221f1">enqueue</a>(std::move(new_msg));</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;        }</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;        <span class="keywordflow">else</span></div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;        {</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;            q_.enqueue_nowait(std::move(new_msg));</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;        }</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    }</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160; </div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    <span class="keywordtype">void</span> worker_loop_()</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    {</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;        <span class="keywordflow">while</span> (process_next_msg_()) {};</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;    }</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160; </div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    <span class="comment">// process next message in the queue</span></div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;    <span class="comment">// return true if this thread should still be active (while no terminate msg</span></div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    <span class="comment">// was received)</span></div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    <span class="keywordtype">bool</span> process_next_msg_()</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    {</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;        async_msg incoming_async_msg;</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;        <span class="keywordtype">bool</span> dequeued = q_.dequeue_for(incoming_async_msg, std::chrono::seconds(10));</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;        <span class="keywordflow">if</span> (!dequeued)</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;        {</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;        }</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160; </div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;        <span class="keywordflow">switch</span> (incoming_async_msg.msg_type)</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;        {</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacespdlog_1_1details.html#a22274995cf879a5d0a08d1f7513ee4fbadc1d71bbb5c4d2a5e936db79ef10c19f">async_msg_type::log</a>:</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;        {</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;            <span class="keyword">auto</span> msg = incoming_async_msg.to_log_msg();</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;            incoming_async_msg.worker_ptr-&gt;backend_log_(msg);</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;        }</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacespdlog_1_1details.html#a22274995cf879a5d0a08d1f7513ee4fba86f354b8575a1a736775ae003fa344e5">async_msg_type::flush</a>:</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;        {</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;            incoming_async_msg.worker_ptr-&gt;backend_flush_();</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;        }</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160; </div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacespdlog_1_1details.html#a22274995cf879a5d0a08d1f7513ee4fba1459e53d3fbaa95cebaf90860dd7a259">async_msg_type::terminate</a>:</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;        {</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;        }</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;        }</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;        assert(<span class="keyword">false</span> &amp;&amp; <span class="stringliteral">&quot;Unexpected async_msg_type&quot;</span>);</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;    }</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;};</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160; </div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;} <span class="comment">// namespace details</span></div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;} <span class="comment">// namespace spdlog</span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="anamespacespdlog_1_1level_html_a35f5227e5daf228d28a207b7b2aefc8b"><div class="ttname"><a href="namespacespdlog_1_1level.html#a35f5227e5daf228d28a207b7b2aefc8b">spdlog::level::level_enum</a></div><div class="ttdeci">level_enum</div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00111">common.h:111</a></div></div>
<div class="ttc" id="aos_8h_html"><div class="ttname"><a href="os_8h.html">os.h</a></div></div>
<div class="ttc" id="aclassspdlog_1_1details_1_1thread__pool_html_a27e41d821a8aa8137bc0e64df031ccd4"><div class="ttname"><a href="classspdlog_1_1details_1_1thread__pool.html#a27e41d821a8aa8137bc0e64df031ccd4">spdlog::details::thread_pool::~thread_pool</a></div><div class="ttdeci">~thread_pool()</div><div class="ttdef"><b>Definition:</b> <a href="thread__pool_8h_source.html#l00141">thread_pool.h:141</a></div></div>
<div class="ttc" id="astructspdlog_1_1details_1_1async__msg_html_a74136620d40e667dbfec1050c8e74179"><div class="ttname"><a href="structspdlog_1_1details_1_1async__msg.html#a74136620d40e667dbfec1050c8e74179">spdlog::details::async_msg::msg_id</a></div><div class="ttdeci">size_t msg_id</div><div class="ttdef"><b>Definition:</b> <a href="thread__pool_8h_source.html#l00035">thread_pool.h:35</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1basic__memory__buffer_html"><div class="ttname"><a href="classfmt_1_1v5_1_1basic__memory__buffer.html">fmt::v5::basic_memory_buffer&lt; char, 176 &gt;</a></div></div>
<div class="ttc" id="astructspdlog_1_1details_1_1async__msg_html_ace5999e830cd28f7b14f804952925379"><div class="ttname"><a href="structspdlog_1_1details_1_1async__msg.html#ace5999e830cd28f7b14f804952925379">spdlog::details::async_msg::async_msg</a></div><div class="ttdeci">async_msg(async_logger_ptr &amp;&amp;worker, async_msg_type the_type)</div><div class="ttdef"><b>Definition:</b> <a href="thread__pool_8h_source.html#l00088">thread_pool.h:88</a></div></div>
<div class="ttc" id="astructspdlog_1_1details_1_1async__msg_html_a02c7d8e28bc720dea6552042801a86c0"><div class="ttname"><a href="structspdlog_1_1details_1_1async__msg.html#a02c7d8e28bc720dea6552042801a86c0">spdlog::details::async_msg::msg_type</a></div><div class="ttdeci">async_msg_type msg_type</div><div class="ttdef"><b>Definition:</b> <a href="thread__pool_8h_source.html#l00029">thread_pool.h:29</a></div></div>
<div class="ttc" id="anamespacespdlog_1_1details_html_a22274995cf879a5d0a08d1f7513ee4fb"><div class="ttname"><a href="namespacespdlog_1_1details.html#a22274995cf879a5d0a08d1f7513ee4fb">spdlog::details::async_msg_type</a></div><div class="ttdeci">async_msg_type</div><div class="ttdef"><b>Definition:</b> <a href="thread__pool_8h_source.html#l00018">thread_pool.h:18</a></div></div>
<div class="ttc" id="acommon_8h_html_a15d2dc432e6bb83beb5130be9a4ca8d6"><div class="ttname"><a href="common_8h.html#a15d2dc432e6bb83beb5130be9a4ca8d6">SPDLOG_NOEXCEPT</a></div><div class="ttdeci">#define SPDLOG_NOEXCEPT</div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00035">common.h:35</a></div></div>
<div class="ttc" id="astructspdlog_1_1details_1_1async__msg_html_a466b9eb427b14c12f59afeeeb98c0e01"><div class="ttname"><a href="structspdlog_1_1details_1_1async__msg.html#a466b9eb427b14c12f59afeeeb98c0e01">spdlog::details::async_msg::async_msg</a></div><div class="ttdeci">async_msg(async_msg_type the_type)</div><div class="ttdef"><b>Definition:</b> <a href="thread__pool_8h_source.html#l00099">thread_pool.h:99</a></div></div>
<div class="ttc" id="anamespacespdlog_1_1details_1_1fmt__helper_html_a603f4d0d8853a61610a0042d5d62fe94"><div class="ttname"><a href="namespacespdlog_1_1details_1_1fmt__helper.html#a603f4d0d8853a61610a0042d5d62fe94">spdlog::details::fmt_helper::append_string_view</a></div><div class="ttdeci">void append_string_view(spdlog::string_view_t view, fmt::basic_memory_buffer&lt; char, Buffer_Size &gt; &amp;dest)</div><div class="ttdef"><b>Definition:</b> <a href="fmt__helper_8h_source.html#l00030">fmt_helper.h:30</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1internal_1_1basic__buffer_html_ac4761deba75a7238ae29243b159b9943"><div class="ttname"><a href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#ac4761deba75a7238ae29243b159b9943">fmt::v5::internal::basic_buffer::size</a></div><div class="ttdeci">std::size_t size() const</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00250">core.h:250</a></div></div>
<div class="ttc" id="astructspdlog_1_1details_1_1async__msg_html_a963cf593d81367843c4347603a18c5f8"><div class="ttname"><a href="structspdlog_1_1details_1_1async__msg.html#a963cf593d81367843c4347603a18c5f8">spdlog::details::async_msg::operator=</a></div><div class="ttdeci">async_msg &amp; operator=(async_msg &amp;&amp;)=default</div></div>
<div class="ttc" id="anamespacespdlog_1_1level_html_a35f5227e5daf228d28a207b7b2aefc8ba917591d8c0e89f6e6247c95c67809a1a"><div class="ttname"><a href="namespacespdlog_1_1level.html#a35f5227e5daf228d28a207b7b2aefc8ba917591d8c0e89f6e6247c95c67809a1a">spdlog::level::off</a></div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00119">common.h:119</a></div></div>
<div class="ttc" id="aclassspdlog_1_1details_1_1thread__pool_html_adc34920f65797d8f54986dc1894a8804"><div class="ttname"><a href="classspdlog_1_1details_1_1thread__pool.html#adc34920f65797d8f54986dc1894a8804">spdlog::details::thread_pool::overrun_counter</a></div><div class="ttdeci">size_t overrun_counter()</div><div class="ttdef"><b>Definition:</b> <a href="thread__pool_8h_source.html#l00174">thread_pool.h:174</a></div></div>
<div class="ttc" id="astructspdlog_1_1details_1_1log__msg_html_a0dfc2763f8e6b73ca34e4cb7c5a9950a"><div class="ttname"><a href="structspdlog_1_1details_1_1log__msg.html#a0dfc2763f8e6b73ca34e4cb7c5a9950a">spdlog::details::log_msg::color_range_end</a></div><div class="ttdeci">size_t color_range_end</div><div class="ttdef"><b>Definition:</b> <a href="log__msg_8h_source.html#l00049">log_msg.h:49</a></div></div>
<div class="ttc" id="aclassfmt_1_1v5_1_1internal_1_1basic__buffer_html_a384f1304da6ce18c4713368327354479"><div class="ttname"><a href="classfmt_1_1v5_1_1internal_1_1basic__buffer.html#a384f1304da6ce18c4713368327354479">fmt::v5::internal::basic_buffer::data</a></div><div class="ttdeci">T * data()</div><div class="ttdef"><b>Definition:</b> <a href="core_8h_source.html#l00256">core.h:256</a></div></div>
<div class="ttc" id="ampmc__blocking__q_8h_html"><div class="ttname"><a href="mpmc__blocking__q_8h.html">mpmc_blocking_q.h</a></div></div>
<div class="ttc" id="aclassspdlog_1_1details_1_1mpmc__blocking__queue_html_a15e3d12dff953034d5aad5590b8282cd"><div class="ttname"><a href="classspdlog_1_1details_1_1mpmc__blocking__queue.html#a15e3d12dff953034d5aad5590b8282cd">spdlog::details::mpmc_blocking_queue::overrun_counter</a></div><div class="ttdeci">size_t overrun_counter()</div><div class="ttdef"><b>Definition:</b> <a href="mpmc__blocking__q_8h_source.html#l00108">mpmc_blocking_q.h:108</a></div></div>
<div class="ttc" id="aclassspdlog_1_1details_1_1mpmc__blocking__queue_html"><div class="ttname"><a href="classspdlog_1_1details_1_1mpmc__blocking__queue.html">spdlog::details::mpmc_blocking_queue&lt; item_type &gt;</a></div></div>
<div class="ttc" id="anamespacespdlog_1_1details_html_a9b6989c16b6150f7e4658ea2aee01bc2"><div class="ttname"><a href="namespacespdlog_1_1details.html#a9b6989c16b6150f7e4658ea2aee01bc2">spdlog::details::async_logger_ptr</a></div><div class="ttdeci">std::shared_ptr&lt; spdlog::async_logger &gt; async_logger_ptr</div><div class="ttdef"><b>Definition:</b> <a href="thread__pool_8h_source.html#l00016">thread_pool.h:16</a></div></div>
<div class="ttc" id="astructspdlog_1_1details_1_1async__msg_html_a1639729ae0bbefc841ec4b87c3369274"><div class="ttname"><a href="structspdlog_1_1details_1_1async__msg.html#a1639729ae0bbefc841ec4b87c3369274">spdlog::details::async_msg::async_msg</a></div><div class="ttdeci">async_msg()=default</div></div>
<div class="ttc" id="afmt__helper_8h_html"><div class="ttname"><a href="fmt__helper_8h.html">fmt_helper.h</a></div></div>
<div class="ttc" id="aclassspdlog_1_1details_1_1thread__pool_html"><div class="ttname"><a href="classspdlog_1_1details_1_1thread__pool.html">spdlog::details::thread_pool</a></div><div class="ttdef"><b>Definition:</b> <a href="thread__pool_8h_source.html#l00118">thread_pool.h:118</a></div></div>
<div class="ttc" id="aclassspdlog_1_1details_1_1thread__pool_html_a2ac821eb936f7373cc51949fb05e841c"><div class="ttname"><a href="classspdlog_1_1details_1_1thread__pool.html#a2ac821eb936f7373cc51949fb05e841c">spdlog::details::thread_pool::thread_pool</a></div><div class="ttdeci">thread_pool(size_t q_max_items, size_t threads_n)</div><div class="ttdef"><b>Definition:</b> <a href="thread__pool_8h_source.html#l00124">thread_pool.h:124</a></div></div>
<div class="ttc" id="anamespacespdlog_html_af48e310b2f366ac6544701e6a3b56247"><div class="ttname"><a href="namespacespdlog.html#af48e310b2f366ac6544701e6a3b56247">spdlog::string_view_t</a></div><div class="ttdeci">fmt::string_view string_view_t</div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00088">common.h:88</a></div></div>
<div class="ttc" id="anamespacespdlog_html"><div class="ttname"><a href="namespacespdlog.html">spdlog</a></div><div class="ttdef"><b>Definition:</b> <a href="async_8h_source.html#l00027">async.h:27</a></div></div>
<div class="ttc" id="astructspdlog_1_1details_1_1async__msg_html_ab4a9c6bb231f8b467f4a9bf43820da45"><div class="ttname"><a href="structspdlog_1_1details_1_1async__msg.html#ab4a9c6bb231f8b467f4a9bf43820da45">spdlog::details::async_msg::~async_msg</a></div><div class="ttdeci">~async_msg()=default</div></div>
<div class="ttc" id="aclassspdlog_1_1details_1_1thread__pool_html_a1a62f3ab1474d69cd1e25143664e856d"><div class="ttname"><a href="classspdlog_1_1details_1_1thread__pool.html#a1a62f3ab1474d69cd1e25143664e856d">spdlog::details::thread_pool::operator=</a></div><div class="ttdeci">thread_pool &amp; operator=(thread_pool &amp;&amp;)=delete</div></div>
<div class="ttc" id="astructspdlog_1_1source__loc_html"><div class="ttname"><a href="structspdlog_1_1source__loc.html">spdlog::source_loc</a></div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00208">common.h:208</a></div></div>
<div class="ttc" id="astructspdlog_1_1details_1_1log__msg_html_a33fd07702d73245581fccd8d0d04b82a"><div class="ttname"><a href="structspdlog_1_1details_1_1log__msg.html#a33fd07702d73245581fccd8d0d04b82a">spdlog::details::log_msg::payload</a></div><div class="ttdeci">const string_view_t payload</div><div class="ttdef"><b>Definition:</b> <a href="log__msg_8h_source.html#l00052">log_msg.h:52</a></div></div>
<div class="ttc" id="astructspdlog_1_1details_1_1log__msg_html_ab8474cd689276f61021bca37e1993eef"><div class="ttname"><a href="structspdlog_1_1details_1_1log__msg.html#ab8474cd689276f61021bca37e1993eef">spdlog::details::log_msg::thread_id</a></div><div class="ttdeci">size_t thread_id</div><div class="ttdef"><b>Definition:</b> <a href="log__msg_8h_source.html#l00044">log_msg.h:44</a></div></div>
<div class="ttc" id="aclassspdlog_1_1details_1_1thread__pool_html_aa851092603e816f78dd81bb980232048"><div class="ttname"><a href="classspdlog_1_1details_1_1thread__pool.html#aa851092603e816f78dd81bb980232048">spdlog::details::thread_pool::post_flush</a></div><div class="ttdeci">void post_flush(async_logger_ptr &amp;&amp;worker_ptr, async_overflow_policy overflow_policy)</div><div class="ttdef"><b>Definition:</b> <a href="thread__pool_8h_source.html#l00169">thread_pool.h:169</a></div></div>
<div class="ttc" id="astructspdlog_1_1details_1_1async__msg_html"><div class="ttname"><a href="structspdlog_1_1details_1_1async__msg.html">spdlog::details::async_msg</a></div><div class="ttdef"><b>Definition:</b> <a href="thread__pool_8h_source.html#l00027">thread_pool.h:27</a></div></div>
<div class="ttc" id="astructspdlog_1_1details_1_1async__msg_html_a00cfea0e28fb046d77da1df09d6410b4"><div class="ttname"><a href="structspdlog_1_1details_1_1async__msg.html#a00cfea0e28fb046d77da1df09d6410b4">spdlog::details::async_msg::time</a></div><div class="ttdeci">log_clock::time_point time</div><div class="ttdef"><b>Definition:</b> <a href="thread__pool_8h_source.html#l00031">thread_pool.h:31</a></div></div>
<div class="ttc" id="astructspdlog_1_1details_1_1async__msg_html_a11f8ca9e84e22b61fca4cd7fe88db5aa"><div class="ttname"><a href="structspdlog_1_1details_1_1async__msg.html#a11f8ca9e84e22b61fca4cd7fe88db5aa">spdlog::details::async_msg::worker_ptr</a></div><div class="ttdeci">async_logger_ptr worker_ptr</div><div class="ttdef"><b>Definition:</b> <a href="thread__pool_8h_source.html#l00037">thread_pool.h:37</a></div></div>
<div class="ttc" id="aclassspdlog_1_1details_1_1thread__pool_html_a70cc09729d82174d84640eaface150e0"><div class="ttname"><a href="classspdlog_1_1details_1_1thread__pool.html#a70cc09729d82174d84640eaface150e0">spdlog::details::thread_pool::post_log</a></div><div class="ttdeci">void post_log(async_logger_ptr &amp;&amp;worker_ptr, details::log_msg &amp;msg, async_overflow_policy overflow_policy)</div><div class="ttdef"><b>Definition:</b> <a href="thread__pool_8h_source.html#l00163">thread_pool.h:163</a></div></div>
<div class="ttc" id="astructspdlog_1_1details_1_1async__msg_html_aac1c8c51a83bae076197a384d26b8814"><div class="ttname"><a href="structspdlog_1_1details_1_1async__msg.html#aac1c8c51a83bae076197a384d26b8814">spdlog::details::async_msg::thread_id</a></div><div class="ttdeci">size_t thread_id</div><div class="ttdef"><b>Definition:</b> <a href="thread__pool_8h_source.html#l00032">thread_pool.h:32</a></div></div>
<div class="ttc" id="aclassspdlog_1_1spdlog__ex_html"><div class="ttname"><a href="classspdlog_1_1spdlog__ex.html">spdlog::spdlog_ex</a></div><div class="ttdef"><b>Definition:</b> <a href="common_8h_source.html#l00175">common.h:175</a></div></div>
<div class="ttc" id="astructspdlog_1_1details_1_1async__msg_html_a017a4b18324181e93c1b1606b0158999"><div class="ttname"><a href="structspdlog_1_1details_1_1async__msg.html#a017a4b18324181e93c1b1606b0158999">spdlog::details::async_msg::source</a></div><div class="ttdeci">source_loc source</div><div class="ttdef"><b>Definition:</b> <a href="thread__pool_8h_source.html#l00036">thread_pool.h:36</a></div></div>
<div class="ttc" id="anamespacespdlog_html_a42e109759a11c9514d3f6313a7709852a14511f2f5564650d129ca7cabc333278"><div class="ttname"><a href="namespacespdlog.html#a42e109759a11c9514d3f6313a7709852a14511f2f5564650d129ca7cabc333278">spdlog::async_overflow_policy::block</a></div></div>
<div class="ttc" id="astructspdlog_1_1details_1_1async__msg_html_a3e2008e47f70761ff3240ab56a3be370"><div class="ttname"><a href="structspdlog_1_1details_1_1async__msg.html#a3e2008e47f70761ff3240ab56a3be370">spdlog::details::async_msg::level</a></div><div class="ttdeci">level::level_enum level</div><div class="ttdef"><b>Definition:</b> <a href="thread__pool_8h_source.html#l00030">thread_pool.h:30</a></div></div>
<div class="ttc" id="astructspdlog_1_1details_1_1log__msg_html"><div class="ttname"><a href="structspdlog_1_1details_1_1log__msg.html">spdlog::details::log_msg</a></div><div class="ttdef"><b>Definition:</b> <a href="log__msg_8h_source.html#l00016">log_msg.h:16</a></div></div>
<div class="ttc" id="aclassspdlog_1_1details_1_1thread__pool_html_a77d633d56b0b5e1fe37965faa4642df5"><div class="ttname"><a href="classspdlog_1_1details_1_1thread__pool.html#a77d633d56b0b5e1fe37965faa4642df5">spdlog::details::thread_pool::q_type</a></div><div class="ttdeci">details::mpmc_blocking_queue&lt; item_type &gt; q_type</div><div class="ttdef"><b>Definition:</b> <a href="thread__pool_8h_source.html#l00122">thread_pool.h:122</a></div></div>
<div class="ttc" id="anamespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div><div class="ttdef"><b>Definition:</b> <a href="format_8h_source.html#l00297">format.h:297</a></div></div>
<div class="ttc" id="astructspdlog_1_1details_1_1async__msg_html_aa525d6ee1ca7b82755a0f39b62283638"><div class="ttname"><a href="structspdlog_1_1details_1_1async__msg.html#aa525d6ee1ca7b82755a0f39b62283638">spdlog::details::async_msg::async_msg</a></div><div class="ttdeci">async_msg(async_logger_ptr &amp;&amp;worker, async_msg_type the_type, details::log_msg &amp;m)</div><div class="ttdef"><b>Definition:</b> <a href="thread__pool_8h_source.html#l00076">thread_pool.h:76</a></div></div>
<div class="ttc" id="anamespacespdlog_1_1details_html_a22274995cf879a5d0a08d1f7513ee4fba86f354b8575a1a736775ae003fa344e5"><div class="ttname"><a href="namespacespdlog_1_1details.html#a22274995cf879a5d0a08d1f7513ee4fba86f354b8575a1a736775ae003fa344e5">spdlog::details::async_msg_type::flush</a></div></div>
<div class="ttc" id="anamespacespdlog_1_1details_html_a22274995cf879a5d0a08d1f7513ee4fbadc1d71bbb5c4d2a5e936db79ef10c19f"><div class="ttname"><a href="namespacespdlog_1_1details.html#a22274995cf879a5d0a08d1f7513ee4fbadc1d71bbb5c4d2a5e936db79ef10c19f">spdlog::details::async_msg_type::log</a></div></div>
<div class="ttc" id="astructspdlog_1_1details_1_1log__msg_html_a607e0014c79c1d39e28b515662ca2ca1"><div class="ttname"><a href="structspdlog_1_1details_1_1log__msg.html#a607e0014c79c1d39e28b515662ca2ca1">spdlog::details::log_msg::source</a></div><div class="ttdeci">source_loc source</div><div class="ttdef"><b>Definition:</b> <a href="log__msg_8h_source.html#l00051">log_msg.h:51</a></div></div>
<div class="ttc" id="astructspdlog_1_1details_1_1log__msg_html_a87cb1c5f1ecd7415412722123e35d491"><div class="ttname"><a href="structspdlog_1_1details_1_1log__msg.html#a87cb1c5f1ecd7415412722123e35d491">spdlog::details::log_msg::color_range_start</a></div><div class="ttdeci">size_t color_range_start</div><div class="ttdef"><b>Definition:</b> <a href="log__msg_8h_source.html#l00048">log_msg.h:48</a></div></div>
<div class="ttc" id="aclassspdlog_1_1details_1_1mpmc__blocking__queue_html_a3795640b651fcb2de66a21ef2bc221f1"><div class="ttname"><a href="classspdlog_1_1details_1_1mpmc__blocking__queue.html#a3795640b651fcb2de66a21ef2bc221f1">spdlog::details::mpmc_blocking_queue::enqueue</a></div><div class="ttdeci">void enqueue(T &amp;&amp;item)</div><div class="ttdef"><b>Definition:</b> <a href="mpmc__blocking__q_8h_source.html#l00035">mpmc_blocking_q.h:35</a></div></div>
<div class="ttc" id="astructspdlog_1_1details_1_1async__msg_html_a0c3ac027c1ca0c1380210c32219a0370"><div class="ttname"><a href="structspdlog_1_1details_1_1async__msg.html#a0c3ac027c1ca0c1380210c32219a0370">spdlog::details::async_msg::raw</a></div><div class="ttdeci">fmt::basic_memory_buffer&lt; char, 176 &gt; raw</div><div class="ttdef"><b>Definition:</b> <a href="thread__pool_8h_source.html#l00033">thread_pool.h:33</a></div></div>
<div class="ttc" id="astructspdlog_1_1details_1_1log__msg_html_a8cbec91cdecd3cb4efe9cfa39d5d1d84"><div class="ttname"><a href="structspdlog_1_1details_1_1log__msg.html#a8cbec91cdecd3cb4efe9cfa39d5d1d84">spdlog::details::log_msg::msg_id</a></div><div class="ttdeci">size_t msg_id</div><div class="ttdef"><b>Definition:</b> <a href="log__msg_8h_source.html#l00045">log_msg.h:45</a></div></div>
<div class="ttc" id="alog__msg_8h_html"><div class="ttname"><a href="log__msg_8h.html">log_msg.h</a></div></div>
<div class="ttc" id="anamespacespdlog_html_a42e109759a11c9514d3f6313a7709852"><div class="ttname"><a href="namespacespdlog.html#a42e109759a11c9514d3f6313a7709852">spdlog::async_overflow_policy</a></div><div class="ttdeci">async_overflow_policy</div><div class="ttdef"><b>Definition:</b> <a href="async__logger_8h_source.html#l00032">async_logger.h:32</a></div></div>
<div class="ttc" id="astructspdlog_1_1details_1_1log__msg_html_a25fadb26e6ce94657af5475d4a581313"><div class="ttname"><a href="structspdlog_1_1details_1_1log__msg.html#a25fadb26e6ce94657af5475d4a581313">spdlog::details::log_msg::time</a></div><div class="ttdeci">log_clock::time_point time</div><div class="ttdef"><b>Definition:</b> <a href="log__msg_8h_source.html#l00043">log_msg.h:43</a></div></div>
<div class="ttc" id="astructspdlog_1_1details_1_1async__msg_html_a2c5c21ef52bd0b7241ed6ac56f480fd2"><div class="ttname"><a href="structspdlog_1_1details_1_1async__msg.html#a2c5c21ef52bd0b7241ed6ac56f480fd2">spdlog::details::async_msg::to_log_msg</a></div><div class="ttdeci">log_msg to_log_msg()</div><div class="ttdef"><b>Definition:</b> <a href="thread__pool_8h_source.html#l00105">thread_pool.h:105</a></div></div>
<div class="ttc" id="anamespacespdlog_1_1details_html_a22274995cf879a5d0a08d1f7513ee4fba1459e53d3fbaa95cebaf90860dd7a259"><div class="ttname"><a href="namespacespdlog_1_1details.html#a22274995cf879a5d0a08d1f7513ee4fba1459e53d3fbaa95cebaf90860dd7a259">spdlog::details::async_msg_type::terminate</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_5f1136fe404e0a548faf586fae339a6a.html">sdk_core</a></li><li class="navelem"><a class="el" href="dir_fef6b6f1028f30fedf17225feaaa02fe.html">include</a></li><li class="navelem"><a class="el" href="dir_7bb3e31efd6b819bbb0704cee4a66d41.html">third_party</a></li><li class="navelem"><a class="el" href="dir_cf58c3a45797022668a1e269b5315a33.html">spdlog</a></li><li class="navelem"><a class="el" href="dir_248a80cf6760c7a1ab13394a1c16f7b2.html">spdlog</a></li><li class="navelem"><a class="el" href="dir_7d093cd833acfccb787639923feedd9d.html">details</a></li><li class="navelem"><a class="el" href="thread__pool_8h.html">thread_pool.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.16 </li>
  </ul>
</div>
</body>
</html>
